from django.http import HttpResponse
from django.shortcuts import render
from app01 import models
from django_redis import get_redis_connection

def index(request):
    models.UserInfo.objects.create(name='jk', password='123456')
    return HttpResponse('hello')

def redis(request):
    conn = get_redis_connection('default')
    a = conn.get("name")
    print(a)
    return HttpResponse("redis")




